<?php
html::printPath(array('country.form-title' => '/admin/country/all', 'application.page-title-display' => ''));
$msg->printMessages();

echo html::entityInfoIcon('country', $country, 'code');
?>

<ul class="commandList">
    <li class="editLi"><?php echo html::anchor('admin/country/edit?code=' . $country['code'], text::get('country.editThis')) ?></li>
    <li class="deleteLi"><?php echo html::anchor('admin/country/delete?code=' . $country['code'], text::get('country.deleteThis'), array('onclick'=>'return confirmDeletion()')) ?></li>
</ul>

<?php
$fb = new FormBuilder('country', $country);
$fb->displayOnly();
$fb->text('code')->identifyingValue();
$fb->text('name');
$fb->text('name_native');
$fb->write();

if ($personList) {
    echo '<h2>' . text::getEscaped('country.personsOfThisCountry') . '</h2>';
    $elb = new EntityListBuilder('person', $personList);
    $elb->setUuid($this->DISPLAY_PERSON_LIST_UUID);
    $elb->text('last_name')->linkWithValue('/admin/person/display?id=', 'id')->openInPopup();
    $elb->text('first_name');
    $elb->date('birth_date');
    $elb->write();
}

